package com.zhouyu.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * 自定义factoryBean
 *
 * @author wangmeng
 * @since 2024/5/19
 */
@Component("userFromFactory")
public class MyFactoryBean implements FactoryBean<User> {


	@Override
	public User getObject() {
		return new User();
	}

	@Override
	public Class<?> getObjectType() {
		return User.class;
	}


}
